const yAxis = function (type) {
    if (type == 2) {
        return {
            show: true,
            size: 'auto',
            // 'left' | 'right'
            position: 'right',
            // 'normal' | 'percentage' | 'log'
            type: 'normal',
            inside: true,
            reverse: false,
            // y轴线
            axisLine: {
                show: true,
                color: '#35373a',
                size: 1
            },
            // x轴分割文字
            tickText: {
                show: true,
                color: '#fff',
                family: 'Helvetica Neue',
                weight: 'normal',
                size: 10,
                marginStart: 4,
                marginEnd: 4
            },
            // x轴分割线
            tickLine: {
                show: true,
                size: 1,
                length: 3,
                color: '#35373a'
            }

        }
    } else {
        return {
            inside: true,
        }
    }
}

export default yAxis;